Optimal. Leaf size=154 \[ \frac {3 (11 A+8 C) \, _2F_1\left (-\frac {5}{6},\frac {1}{2};\frac {1}{6};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{5/3} \sin (c+d x)}{55 b d \sqrt {\sin ^2(c+d x)}}+\frac {3 B \, _2F_1\left (-\frac {4}{3},\frac {1}{2};-\frac {1}{3};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{8/3} \sin (c+d x)}{8 b^2 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C (b \sec (c+d x))^{8/3} \tan (c+d x)}{11 b^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 154, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {16, 4132, 3857,
2722, 4131} \begin {gather*} \frac {3 (11 A+8 C) \sin (c+d x) (b \sec (c+d x))^{5/3} \, _2F_1\left (-\frac {5}{6},\frac {1}{2};\frac {1}{6};\cos ^2(c+d x)\right )}{55 b d \sqrt {\sin ^2(c+d x)}}+\frac {3 B \sin (c+d x) (b \sec (c+d x))^{8/3} \, _2F_1\left (-\frac {4}{3},\frac {1}{2};-\frac {1}{3};\cos ^2(c+d x)\right )}{8 b^2 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C \tan (c+d x) (b \sec (c+d x))^{8/3}}{11 b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 16
Rule 2722
Rule 3857
Rule 4131
Rule 4132
Rubi steps
\begin {align*} \int \sec ^2(c+d x) (b \sec (c+d x))^{2/3} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {\int (b \sec (c+d x))^{8/3} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx}{b^2}\\ &=\frac {\int (b \sec (c+d x))^{8/3} \left (A+C \sec ^2(c+d x)\right ) \, dx}{b^2}+\frac {B \int (b \sec (c+d x))^{11/3} \, dx}{b^3}\\ &=\frac {3 C (b \sec (c+d x))^{8/3} \tan (c+d x)}{11 b^2 d}+\frac {(11 A+8 C) \int (b \sec (c+d x))^{8/3} \, dx}{11 b^2}+\frac {\left (B \left (\frac {\cos (c+d x)}{b}\right )^{2/3} (b \sec (c+d x))^{2/3}\right ) \int \frac {1}{\left (\frac {\cos (c+d x)}{b}\right )^{11/3}} \, dx}{b^3}\\ &=\frac {3 C (b \sec (c+d x))^{8/3} \tan (c+d x)}{11 b^2 d}+\frac {3 B \, _2F_1\left (-\frac {4}{3},\frac {1}{2};-\frac {1}{3};\cos ^2(c+d x)\right ) \sec (c+d x) (b \sec (c+d x))^{2/3} \tan (c+d x)}{8 d \sqrt {\sin ^2(c+d x)}}+\frac {\left ((11 A+8 C) \left (\frac {\cos (c+d x)}{b}\right )^{2/3} (b \sec (c+d x))^{2/3}\right ) \int \frac {1}{\left (\frac {\cos (c+d x)}{b}\right )^{8/3}} \, dx}{11 b^2}\\ &=\frac {3 (11 A+8 C) \, _2F_1\left (-\frac {5}{6},\frac {1}{2};\frac {1}{6};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{5/3} \sin (c+d x)}{55 b d \sqrt {\sin ^2(c+d x)}}+\frac {3 C (b \sec (c+d x))^{8/3} \tan (c+d x)}{11 b^2 d}+\frac {3 B \, _2F_1\left (-\frac {4}{3},\frac {1}{2};-\frac {1}{3};\cos ^2(c+d x)\right ) \sec (c+d x) (b \sec (c+d x))^{2/3} \tan (c+d x)}{8 d \sqrt {\sin ^2(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 3.24, size = 346, normalized size = 2.25 \begin {gather*} \frac {3 (b \sec (c+d x))^{2/3} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (-\frac {i 2^{2/3} e^{-i (c+d x)} \left (\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}\right )^{2/3} \left (275 B \left (1+e^{2 i (c+d x)}\right )+275 B \left (-1+e^{2 i c}\right ) \left (1+e^{2 i (c+d x)}\right )^{2/3} \, _2F_1\left (-\frac {1}{6},\frac {2}{3};\frac {5}{6};-e^{2 i (c+d x)}\right )+16 (11 A+8 C) e^{i (c+d x)} \left (-1+e^{2 i c}\right ) \left (1+e^{2 i (c+d x)}\right )^{2/3} \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {4}{3};-e^{2 i (c+d x)}\right )\right )}{-1+e^{2 i c}}+\sec ^{\frac {2}{3}}(c+d x) \left (275 B \cos (d x) \csc (c)+2 (44 A+72 C+55 B \cos (c+d x)+4 (11 A+8 C) \cos (2 (c+d x))) \sec ^2(c+d x) \tan (c+d x)\right )\right )}{440 d (A+2 C+2 B \cos (c+d x)+A \cos (2 (c+d x))) \sec ^{\frac {8}{3}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.31, size = 0, normalized size = 0.00 \[\int \left (\sec ^{2}\left (d x +c \right )\right ) \left (b \sec \left (d x +c \right )\right )^{\frac {2}{3}} \left (A +B \sec \left (d x +c \right )+C \left (\sec ^{2}\left (d x +c \right )\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \sec {\left (c + d x \right )}\right )^{\frac {2}{3}} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right ) \sec ^{2}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{2/3}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\cos \left (c+d\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________